import random

class Accelerometer:
    def read(self):
        return {
            "x": random.uniform(-1, 1),
            "y": random.uniform(-1, 1),
            "z": random.uniform(-1, 1)
        }

class Accelerometer:
    def get_data(self) -> dict:
        """获取加速度数据"""
        return {"x": 0.0, "y": 0.0, "z": 0.0}